<script setup>
defineProps(
    {
      info: {
        type: String,
        default: null,
        required: true,
        validator: (value) => value.length > 0 && value.length <= 10
      }
    }
)
</script>

<template>
  <h2>这是 Child6 子组件</h2>
  <div>{{ info }}</div>
</template>

<style scoped>

</style>